﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UcBangDiemHocVien.ascx.cs" Inherits="STT.Profile.UserControlsGV.UcBangDiemHocVien" %>
<style>
    .pagerstyle { 

   color:#006699;
   font-size:13px;
    }
     .pagerstyle:hover { 
   color:#f00;
    }
    .dropdl { 
        padding:4px;
    }
</style>
<div id="biography" class="page home">
    <div style="width:90%">
         <div class="row" >
            <div class="col-md-7">
            <h1 class="title"><span id="ctl02_DtlIndex_Label1_0">Bảng điểm học viên</span></h1>
            </div>                                 
        </div>
        <div class="row" style="margin-top:10px;margin-bottom:20px">
             <div class="col-md-7">
                 Khóa học:
                 <asp:DropDownList ID="ddlkhoahoc" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlkhoahoc_SelectedIndexChanged" CssClass="dropdl" ></asp:DropDownList>             
                 &nbsp;&nbsp;&nbsp;
                 Lớp học:
                 <asp:DropDownList ID="ddllophoc" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddllophoc_SelectedIndexChanged" CssClass="dropdl" ></asp:DropDownList>
                 &nbsp;&nbsp;&nbsp;
                 Môn học:
                 <asp:DropDownList ID="ddlmonhoc" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlmonhoc_SelectedIndexChanged" CssClass="dropdl" ></asp:DropDownList>
             </div>
        </div>
    <asp:Panel ID="pnbangdiem" runat="server" Visible="false">
        <div class="row" >
            <div class="col-md-7">
             <h4><asp:Label ID="lblbangdiem" runat="server" Text="" Visible="false"></asp:Label></h4>
            </div>                                 
        </div>
        <div>
         <asp:GridView ID="gvDiemHV" runat="server" CssClass="table table-bordered table-hover"
                AutoGenerateColumns="False" DataKeyNames="Mahv" AllowPaging="True"
                 OnPageIndexChanging="gvDiemHV_PageIndexChanging" PageSize="7" >
                <Columns>
                    <asp:TemplateField HeaderText="Số thứ tự" 
                        SortExpression="SoThuTu">
                        <ItemTemplate>
                           <%# Container.DataItemIndex + 1 %>
                        </ItemTemplate>
                        <ItemStyle CssClass="span1" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="MaHV" HeaderText="Mã Học Viên"
                        ReadOnly="True" SortExpression="MaKhoaHoc"
                        ItemStyle-CssClass="span1">
                        <ItemStyle CssClass="span1"></ItemStyle>
                    </asp:BoundField>
                     <asp:TemplateField HeaderText="Tên Học Viên"
                        SortExpression="TenHV">
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" 
                                Text='<%# Eval("HoTen") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle CssClass="span2" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="TenMonHoc" HeaderText="Tên Môn Học"
                        SortExpression="TenMonHoc" ItemStyle-CssClass="span2">
                        <ItemStyle CssClass="span2"></ItemStyle>
                    </asp:BoundField>
                 
                    <asp:TemplateField HeaderText="Điểm tổng kết" 
                        SortExpression="DiemTongKet">
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" 
                                Text='<%# Eval("DiemTK") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle CssClass="span1" />
                    </asp:TemplateField>
                       <asp:TemplateField HeaderText="Năm học" 
                        SortExpression="NamHoc">
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" 
                                Text='<%# Eval("NamHoc") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle CssClass="span1" />
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </div>
        <br />
    <asp:Button ID="btnexport" runat="server" Text="Export" Visible="false" Width="100px" Height="40px" CssClass="btn-info btn" OnClick="btnexport_Click" />
    </asp:Panel>
        </div>
 </div>